package com.jd.charactercalculator.dao.impl;

import java.util.List;
import java.util.Map;
import com.jd.charactercalculator.dao.common.BaseDao; 
import com.jd.charactercalculator.entity.CharacterEntity;
import com.jd.charactercalculator.dao.CharacterDao;
/**
 * 
 *
 * @author:孙林
 * @since:2012下午4:48:33
 * @version:1.0.0
 */
public class CharacterDaoImpl extends BaseDao implements CharacterDao {
	
	@Override
	public List<CharacterEntity> getCharacters(Map<String ,Object> map) {
		return this.getSqlSession().selectList("CharacterEntity.getCharacterLimit",map);
	}

	@Override
	public int getTotalSize() {
		return ((Integer)(this.getSqlSession().selectOne("CharacterEntity.getTotalSize"))).intValue();
	}

}
